
/**
 * 经纬度转换
 */
export const transferRoadPoint = ()=>{
	if(!data.length) return;
	const arr = data?.split(',');
	const result = [];
	for(let i=0;i<arr.length;i+=2) {
		let longitude = parseFloat(arr[i]).toFixed(6);
		let latitude = parseFloat(arr[i+1]).toFixed(6);
		result.push([longitude,latitude])
	}
	return result;
}
